@echo off

echo "helo"
rem echo %1

echo "ddd" > 111.log
@echo %1 >> 111.log
@echo %2 >> 111.log

for /l %%i in (1,1,5) do @echo %%i  >> 111.log

sub.bat xxx